'use client'
import React from "react";
import { Flex } from "antd"
function Title({ title = "", des = "", hasRight = true, right }) {
  return (
    <Flex justify="space-between" align="center" style={{ marginBottom: "10px" }}>
      <Flex align="center">
        <div style={{ color: "#1f2633", fontWeight: "700", fontSize: "18px" }}>{title}</div>
        <div style={{ color: "#1f2633", fontSize: "14px", marginLeft: "20px" }}>{des}</div>
      </Flex>
      {hasRight && <div>{right}</div>}
    </Flex>
  );
}

export default Title;